<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Expend extends Model
{
    public function expense()
    {
        return $this->hasOne(Payment::class,'id','payment_id')->field('id,name');
    }

    public function school()
    {
        return $this->hasOne(School::class,'id','school_id')->bind(['school_name'=>'name']);
    }
}
